import Vue from 'vue'
import router from './router'
import store from '@/store'
import App from '@/App'
import '@/styles/app.scss'
import './plugins/element-ui'
import IM from '@/im' // 融云即时通讯
import Popup from '@/popup'
import { formatTimeStamp, formatSeconds, urlTobase64, parseTime } from '@/utils'
import storage from '@/utils/storage'

Vue.use(IM)
Vue.use(Popup)
Vue.prototype._store = store
Vue.prototype.$utils = {
  formatTimeStamp,
  formatSeconds,
  urlTobase64,
  parseTime
}
Vue.prototype.$storage = storage

new Vue({
  el: '#app',
  router,
  store,
  components: { App },
  template: '<App/>'
})
